this is my new and improved integer code